package com.sixth.docker.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sixth.core.entity.RegisteredItem;
import com.sixth.core.vo.R;
import com.sixth.docker.mapper.RegisteredItemMapper;
import com.sixth.docker.service.RegisteredItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 赵庆龙
 * @create: 2024-08-15 21:06
 **/
@Service
public class RegisteredItemServiceImpl implements RegisteredItemService {
@Autowired
private RegisteredItemMapper registeredItemMapper;
    @Override
    public R<List<RegisteredItem>> selectAll() {
        QueryWrapper<RegisteredItem> wrapper = new QueryWrapper<>();
        wrapper.eq("status", "0");
        wrapper.eq("del_flag", "0");
        List<RegisteredItem> registeredItems = registeredItemMapper.selectList(wrapper);
        return R.ok(registeredItems);

    }
}
